﻿@model IList<QLBV.Models.News>
@{
    ViewBag.Title = "Danh Sách Tin Tức";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="newlist">

       <ul>
            @foreach(var item in Model)
            {
                if ( item.Status == true)
                {
                <li>
                    <a href="/News/ContentNews/@item.ID">@Html.DisplayFor(m => item.Title)
                    </a>
                    <br />
                    <span> @Html.DisplayFor(m => item.CreaDate)   </span> 
                    <br />
                   @MvcHtmlString.Create(item.Content.Substring(0,20)+"...")
                   <br />
                    <a id="xemthem" href="/News/ContentNews/@item.ID"> Xem thêm </a>   
                </li>
                <br />
                }
            }
        </ul>





</div>